package cn.aloxc.tianya.reader;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class Activity_test_linearlayout extends Activity{
	Button button = null;
	OnClickListener listener;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(cn.aloxc.tianya.reader.R.layout.activity_test);
        ((Button)findViewById(R.id.t_frame)).setEnabled(false);
        ((Button)findViewById(R.id.t_hunhe)).setEnabled(false);
        ((Button)findViewById(R.id.t_relative)).setEnabled(false);
        ((Button)findViewById(R.id.t_table)).setEnabled(false);
        Bundle data = this.getIntent().getExtras();
        setTitle(data.getString("testItem"));
        
        listener = new OnClickListener(){
			public void onClick(View arg0) {
				Intent intent = getIntent();
				setResult(RESULT_OK, intent);
				finish();
			}
        };
        button = (Button)findViewById(R.id.t_linear);
        button.setOnClickListener(listener);
    }
}
